import request from "@/utils/request";

// 会议预约
export function bookApi(data: object) {
  return request({
    url: "/multiPersonConference/book",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
    data,
  });
}

// 会议列表查询
export function searchBookApi(data: object) {
  return request({
    url: "/multiPersonConference/search-book",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
    data,
  });
}

// 用户取消预约
export function cancelBookApi(data: object) {
  return request({
    url: "/multiPersonConference/cancel-book",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
    data,
  });
}

// 点击人数展示详情(日期详情展示)
export function showDateDetailApi(data: object) {
  return request({
    url: "/multiPersonConference/show-date-detail",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
    data,
  });
}

// 会议名称查询
export function selectmettingNameApi() {
  return request({
    url: "/multiPersonConference/select-metting-name",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
  });
}
